# -*- coding: utf-8 -*-
# @Time : 2024/2/22 11:35
# @Author : ZH
# @File : 1.py
# @Software: PyCharm
class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """
        # d_dict = set(nums)
        for index, value in enumerate(nums):
            x = target - value
            if x in target[index + 1:]:
                return [index, nums[index+1].index(x)+index+1]

